﻿
var statementSubmit = function () {
    if (formProtection) {
        formProtection = false;
        document.cardsForm.submit();
    }
    return false;
};

$(function () {
    formProtection = true;
    var toggleUIMenuItemState = function(menuItem) {
        $(menuItem).toggleClass("ui-state-hover");
    };
    
    $("#operation ul li").hover(function () { toggleUIMenuItemState(this); },
        function () { toggleUIMenuItemState(this); });
});